package com.axxc.jpa.pattendegign.abstractfactory;

/**
 * @ClassName AFactory
 * @Description //TODO 请描述该类的作用
 * @author xxc
 * @data 2018年8月30日下午9:05:38
 * @see {@link http://gitee.com/biuabiu/ }
 */
public class AFactory extends AbstractFactory {

	@Override
	public A getA(String name) {
		A a = null;
		if ("A1".equals(name)) {
			a= new A1();
		}else if("A2".equals(name)){
			a = new A2();
		}
		return a;
	}

	@Override
	public B getB(String name) {
		return null;
	}

}
